.serve {
  display: flex;
}
.chat-video {
  margin: 1rem auto;
  padding: 1rem;
  height: 20vh;
  width: 98%;
  border: 1px solid;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  overflow: auto;
}
.down-row {
  width: 0.78rem;
}
.main-left {
  position: relative;
  width: 30vw;
  display: flex;
  flex-direction: column;
}
.main-right {
  position: relative;
  flex: 1;
  margin-right: 1rem;
}
.video-here {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main {
  margin-top: 1rem;
  height: 60vh;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px #919191 solid;
  margin-left: 1rem;
  padding: 1rem;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.channel-title {
  margin-top: 0.5rem;
  display: flex;
  /* height: 1rem;    */
  gap: 1rem;
}
.icon-row {
  width: 0.8rem;
  height: 1rem;
}
.player {
  width: 100%;
  position: relative;
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.player p {
  width: 20vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
}

@media screen and (max-width: 600px) {
  .player p {
    width: 10vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
  }
}
.channel-name {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.channel-name img {
  width: 1.5rem;
}
.server-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}
.server-title img {
  width: 1.5rem;
}
.chat {
  position: fixed;
  bottom: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  gap: 1rem;
}
.chat-input {
  flex: 1;
  border: 1px solid;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 0.2rem;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.chat-single {
  display: flex;
}
.chat-single div {
  display: flex;
  gap: 1rem;
}
.chat-player {
  color: #ff4d79;
}
.chat-single > p {
  margin-left: auto;
  color: #606770;
  font-size: 0.8rem;
  white-space: nowrap;
}
.chat-content {
  flex: 1;
}
.main-left-single:nth-child(n + 2) {
  margin-top: 1rem;
}
.server-close {
  color: #919191;
}
.no-server {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #919191;
}
.no-server span {
  color: #1e90ff;
  font-size: 0.85rem;
}

.nobody-chat {
  text-align: center;
}

.video-single {
  width: 200px;
  position: relative;
}
.video-single video {
  width: 100%;
}
.video-single p {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: white;
}
.chat-single {
  margin-top: 0.5rem;
}
.inputImg {
  width: 100%;
}

.self-color {
  color: #2881ed !important;
}
.player-volume {
  display: none;
  padding: 1rem;
  box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2);
  border-radius: 1rem;
  width: 10rem;
  height: 6rem;
  background-color: #f6f7f9;
  position: fixed;
  z-index: 100;
  /* top: 0; */
  /* left: 40%; */
  transform: translate(100%, 0);
  align-items: center;
}
.change-volume {
  display: none !important;
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: left bottom;
  transform: rotate(-90deg) translate(25%, 85%);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  border-radius: 0.4rem;
}
.voiceSwitch:hover .change-volume {
  display: flex !important;
}
/* .change-volume input {
  height: 0.4rem;
  outline: none;
} */
[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  outline: 0;
  background-color: transparent;
  width: 100px;
}
[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #eee;
}
[type="range" i]::-webkit-slider-container {
  height: 20px;
  overflow: hidden;
}
[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f44336;
  border: 1px solid transparent;
  margin-top: -8px;
  border-image: linear-gradient(#f44336,#f44336) 0 fill / 8 20 8 0 / 0px 0px 0 2000px;
  transform: scale(0.6);
}

.line-container {
  position: relative;
  width: 2rem; /* 调整容器的宽度和高度以适应您的图片 */
  height: 2rem;
}
.audio-video {
  width: 0;
  height: 0;
  overflow: hidden;
}
.line {
  position: absolute;
  top: 0;
  right: 2px;
  width: 2.5rem; /* 确保线条横跨整个容器 */
  height: 2px; /* 调整线条的高度 */
  background-color: red; /* 调整线条的颜色 */
  transform-origin: right top; /* 设置变换的原点为左下角 */
  transform: scaleX(0) scaleY(0.01) rotate(-45deg); /* 初始状态为隐藏 */
}

.line-animate {
  animation: drawLine 0.2s forwards; /* 使用动画效果绘制线条 */
}

@keyframes drawLine {
  0% {
    transform: scaleX(0) scaleY(0.01) rotate(-45deg); /* 初始状态为隐藏 */
  }
  100% {
    transform: scaleX(1) scaleY(1) rotate(-45deg); /* 绘制线条 */
  }
}
